﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    internal class Prime
    {
        public static void Main()
        {
            Console.WriteLine("Hello, World!");
            Console.Write("请输入一个正整数：");
            int number = int.Parse(Console.ReadLine());

            Console.Write("该数的素数因子有：");
            for (int i = 2; i <= number; i++)
            {
                while (number % i == 0)
                {
                    Console.Write(i + " ");
                    number /= i;
                }
            }
        }


    }
}
